package com.procurement.bidding.controller;

import com.procurement.bidding.service.PcmExpertSupplierService;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/expert")
public class PcmExpertSupplierController extends BaseController {
    @Autowired
    private PcmExpertSupplierService pess;

    @PostMapping("/supplierBidding")
    public AjaxResult supplierBidding(@RequestBody Map<String, Object> map) {
        return toAjax(pess.supplierBidding(map));
    }

    @PostMapping("/expertEvaluation")
    public Boolean expertEvaluation(@RequestBody Map<String, Object> map) {
        return pess.expertEvaluation(map);
    }
}
